import request from "@/utils/request";

// 获取基本信息
export const getInfo = () => {
  return request({
    url: "/patrol/ls/getTheBasics",
    method: "get",
  });
};

// 巡查列表
export const patrulhaList = () => {
  return request({
    url: "/patrol/ls/getLink",
    method: "get",
  });
};

//巡查列表详情
export const getLinklist = (id) => {
  return request({
    url: "/patrol/ls/getLinklist?scheduleId=" + id,
    method: "get",
  });
};

// 学校列表
export const getSchoolList = () => {
  return request({
    url: "/patrol/ls/getSchoolList",
    method: "get",
  });
};

//学校详情
export const getSchoolDetail = (id) => {
  return request({
    url: "/patrol/ls/getSchoolInfo?id=" + id,
    method: "get",
  });
};

//监控列表
export const monitorList = (query) => {
  return request({
    url: "/patrol/ls/getMonitor",
    method: "get",
    params:query
  });
};

//安保人员列表
export const getGuard = (id) => {
  return request({
    url: "/patrol/ls/getGuard?id="+id,
    method: "get",
  });
};

//行政人员列表
export const getStaff = (id) => {
  return request({
    url: "/patrol/ls/getStaff?id="+id,
    method: "get",
  });
};

//巡查线路列表
export const getPatrulhaLine = (query) => {
  return request({
    url: "/patrol/ls/lineList",
    method: "get",
    params:query
  });
};

//巡查记录列表
export const getPatrulhaDetail = (query) => {
  return request({
    url: "/patrol/ls/lineGuard",
    method: "get",
    params:query
  });
};
